package com.yhh.college_information_platform.dto;

import lombok.Data;
import java.io.Serializable;

/**
 * 资料查询DTO
 *
 * @author yhh
 * @date 2025-10-25
 */
@Data
public class ResourceQueryDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关键词（标题、描述）
     */
    private String keyword;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 标签
     */
    private String tag;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 上传者ID
     */
    private Long uploaderId;

    /**
     * 审核状态
     */
    private Integer status;

    /**
     * 排序字段：create_time-最新, download_count-下载, like_count-点赞, view_count-浏览
     */
    private String orderBy;

    /**
     * 排序方式：asc-升序, desc-降序
     */
    private String orderType;

    /**
     * 当前页码
     */
    private Integer current;

    /**
     * 每页大小
     */
    private Integer size;

    public ResourceQueryDTO() {
        this.current = 1;
        this.size = 10;
        this.orderBy = "create_time";
        this.orderType = "desc";
    }
}

